﻿using Ay.MvcFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace MPSystem.Models
{
    public class BasicDataSet_SSModel : AyPropertyChanged
    {
      
        #region 定义字段

        private int _CboComSelect = -1;

        /// <summary>
        /// COM口选择
        /// </summary>
        public int CboComSelect
        {
            get { return _CboComSelect; }
            set { Set(ref _CboComSelect, value); }
        }

        private int kjbh;
        private string com;

        private string _kjmc;
        /// <summary>
        /// 矿井名称
        /// </summary>
        public string Kjmc
        {
            get { return _kjmc; }
            set { Set(ref _kjmc, value); }
        }

        /// <summary>
        /// 矿井编号
        /// </summary>
        public int Kjbh
        {
            get { return kjbh; }
            set { Set(ref kjbh, value); }
            }

        private string _csmc;
        /// <summary>
        /// 测试名称
        /// </summary>
        public string CSMC
        {
            get { return _csmc; }
            set { Set(ref _csmc, value); }
        }
        private string _bflj;

        /// <summary>
        /// 备份路径
        /// </summary>
        public string Bflj
        {
            get { return _bflj; }
            set { Set(ref _bflj, value); }
        }

        private string _dxdk;
        /// <summary>
        /// 短信端口
        /// </summary>
        public string Dxdk {
            get { return _dxdk; }
            set { Set(ref _dxdk, value); }
        }
        /// <summary>
        /// 电话号码
        /// </summary>
        public string Dhhm {
            get { return _dhhm; }
            set { Set(ref _dhhm, value); }
         }

        private string _dhhm;
        #endregion


        #region 操作区域
        public ICommand ContextEditItem { get; set; }
     /// <summary>
     /// COM口
     /// </summary>
        public string Com
        {
            get { return com; }
            set { Set(ref com, value); }
        }
        #endregion


    }


    /// <summary>
    /// 测区控件
    /// </summary>
    public class CQModel : Model
    {
        private string cqmc;
        private int syzt=-1;
        private string ckmc ;
        private int cqbh;

        public string Cqmc
        {
            get { return cqmc; }
            set { Set(ref cqmc, value); }
        }
        public int Syzt
        {
            get { return syzt; }
            set { Set(ref syzt, value); }
        }
        public string Ckmc
        {
            get { return ckmc; }
            set { Set(ref ckmc, value); }
        }

        public int Cqbh { get => cqbh; set => cqbh = value; }
    }
    //测区报表
    public class CQTable : AyTableViewRowModel
    {
        private string cqmc;
        private int syzt;
        private int _cqbh;
        private string _ckmc;

        public string Cqmc
        {
            get { return cqmc; }
            set { Set(ref cqmc, value); }
        }
        public int Syzt
        {
            get { return syzt; }
            set { Set(ref syzt, value); }
        }
    
        public string Ckmc
        {
            get { return _ckmc; }
            set { Set(ref _ckmc, value); }
        }

        public int Cqbh { get => _cqbh; set => _cqbh = value; }
    }


    /// <summary>
    /// 工作面控件
    /// </summary>
    public class GZMModel : Model
    {
        private string gzmmc;
        private int syzt=-1;
        private int sscq=-1;
        private int gzmbh;
        public int Gzmbh
        {
            get { return gzmbh; }
            set { Set(ref gzmbh, value); }
        }
        public string Gzmmc
        {
            get { return gzmmc; }
            set { Set(ref gzmmc, value); }
        }
        public int Syzt
        {
            get { return syzt; }
            set { Set(ref syzt, value); }
        }
        public int Sscq
        {
            get { return sscq; }
            set { Set(ref sscq, value); }
        }
    }

    /// <summary>
    /// 工作面报表
    /// </summary>
    public class GZMTable : AyTableViewRowModel
    {
        private string gzmmc;
        private int gzmbh;
        private int syzt = -1;
        private int sscq = -1;
        private string cqmc;//测区名称

        public string Gzmmc
        {
            get { return gzmmc; }
            set { Set(ref gzmmc, value); }
        }
        public int Syzt
        {
            get { return syzt; }
            set { Set(ref syzt, value); }
        }
        public int Sscq
        {
            get { return sscq; }
            set { Set(ref sscq, value); }
        }
         
        public int Gzmbh {
            get { return gzmbh; }
            set { Set(ref gzmbh, value); }
       }
        public string Cqmc
        {
            get { return cqmc; }
            set { Set(ref cqmc, value); }
        }
    }

    /// <summary>
    /// 巷道控件
    /// </summary>
    public class XDModel : Model
    {
        private string xdmc;
        private int syzt = -1;
        private int sscq = -1;
        private int xdbh;
        public string Xdmc
        {
            get { return xdmc; }
            set { Set(ref xdmc, value); }
        }
        public int Syzt
        {
            get { return syzt; }
            set { Set(ref syzt, value); }
        }
        public int Sscq
        {
            get { return sscq; }
            set { Set(ref sscq, value); }
        }

        public int Xdbh {
            get { return xdbh; }
            set { Set(ref xdbh, value); }
          }
    }

    /// <summary>
    /// 巷道报表
    /// </summary>
    public class XDTable : AyTableViewRowModel
    {
        private string xdmc;
        private int syzt = -1;
        private int sscq = -1;
        private int xdbh;
        private string cqmc;//测区名称

        public string Xdmc
        {
            get { return xdmc; }
            set { Set(ref xdmc, value); }
        }
        public int Syzt
        {
            get { return syzt; }
            set { Set(ref syzt, value); }
        }
        public int Sscq
        {
            get { return sscq; }
            set { Set(ref sscq, value); }
        }

        public int Xdbh
        {
            get { return xdbh; }
            set { Set(ref xdbh, value); }
        }

        public string Cqmc
        {
            get { return cqmc; }
            set { Set(ref cqmc, value); }
        }
    }

}
